type ID=String|number;
let a:ID="Alice";
let b:ID=12;

type Point={x:String;y:number};
console.log(a);
console.log(b);

let c:Point={x:"Alice",y:16};
console.log(c.x);
console.log(c.y);